package cn.zysheep.service;

import cn.zysheep.annotation.ServiceSwitch;
import cn.zysheep.constant.Constant;
import cn.zysheep.util.Result;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 挂号服务
 * </p>
 *
 * @author : lyw
 * @since : 2023/11/17 10:58
 */
@Service
public class RegService {

    /**
     * 挂号下单
     */
    @ServiceSwitch(switchKey = Constant.ConfigCode.REG_PAY_SWITCH)
    public Result createOrder() {

        // 具体下单业务逻辑省略....

        return new Result(HttpStatus.OK.value(), "挂号下单成功");
    }
}
